package cn.shujuhai.qtadmin.platform.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.shujuhai.qtadmin.platform.domain.SysMenu;

/**
 * @Entity cn.shujuhai.qtadmin.platform.domain.SysMenu
 * @author dch
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 获取用户菜单
     * 
     * @param userId
     *            用户id
     * @return 用户菜单列表
     */
    @InterceptorIgnore(illegalSql = "1")
    List<SysMenu> getMenus4user(@Param("userId") Integer userId);
}
